PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

ATSTrapezoid

The ATSTrapezoid type is a structure that contains the coordinates of typographic bounding trapezoid(s) for a final laid-out line of text. The dimensions of the resulting trapezoid are relative to the coordinates specified in the iTextBasePointX and iTextBasePointY parameters. The width of the glyph bounds will be determined based on the value passed in the iTypeOfBounds parameter.

The function ATSUGetGlyphBounds passes back an array of structures of type ATSTrapezoid to specify the enclosing trapezoid(s) of a final laid-out line of text. If the range of text spans directional boundaries, ATSUGetGlyphBounds will pass back multiple trapezoids defining these regions.

struct ATSTrapezoid {
    FixedPoint      upperLeft;
    FixedPoint      upperRight;
    FixedPoint      lowerRight;
    FixedPoint      lowerLeft;
};

Field descriptions

upperLeft
A structure of type FixedPoint that contains the upper left coordinates (assuming a horizontal line of text) of the typographic glyph bounds.

upperRight
A structure of type FixedPoint that contains the upper right coordinates (assuming a horizontal line of text) of the typographic glyph bounds.

lowerRight
A structure of type FixedPoint that identifies the lower right coordinates (assuming a horizontal line of text) of the typographic glyph bounds.

lowerLeft
A structure of type FixedPoint that identifies the lower left coordinates (assuming a horizontal line of text) of the typographic glyph bounds.
VERSION NOTES
Available beginning with ATSUI 1.1. In ATSUI 1.1, ATSUGetGlyphBounds can pass back a maximum of 31 bounding trapezoids; in ATSUI 1.2, ATSUGetGlyphBounds can pass back as many as 127 bounding trapezoids.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)